home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Publication 7
/
Publication_07_1996_High-Tech_de_Side_B.d64
/
fahrsimulation
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
5KB
|
158 lines
10 rem ********************************
20 rem fahrsimulator
30 rem ********************************
100 rem ton vorbereiten
110 si=54272:pokesi+24,15
120 pokesi+1,248:pokesi+8,6:pokesi+15,9
130 pokesi+5,154:pokesi+12,9:pokesi+19,9
200 cl=6:gosub6200
210 printchr$(142);chr$(8)
220 print"[147][158]","[164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164][164]"
230 print," fahr - simulator "
270 gosub5000
300 ifpeek(12800)=120then330
310 c=0:fora=12800to13229:readb:pokea,b:c=c+b:next
315 ifc<>49567thenprint"pruefsummenfehler!":stop
320 fora=704to766:readb:pokea,b:next
330 poke251,102:poke883,8
340 print:print" weiter ? ";
350 gosub6000
360 ifx$<>"j"andx$<>"y"then350
400 cl=6:gosub6200
410 print"[147][159] *** schwierigkeitsgrad ***
420 [153]" tastesys fuer
430 print" a[158] : anfaenger
440 [153]" bsys : fortgeschrittene
450 print" c[158] : langjaehrige autofahrer
460 [153]" dsys : profis
470 print" e[158] : selbstmoerder
480 [153]"fahrbahnbreite (a-e)sys : ";
490 [141]6000:br$[178]x$
500 br[178]70[171][198](x$):[139]br[179]1[176]br[177]5[167]490
510 [153]br$
520 :
530 [153]"geschwindigkeit (a-e)sys : ";
540 [141]6000:ge$[178]x$:[139]x$[178]"@"[167][141]6400:[137]530
550 ge[178]70[171][198](x$):[139]ge[179]1[176]ge[177]5[167]540
560 [153]ge$
570 [151]252,br[172]3[170]6:[151]253,ge[172]2.5
580 [129]a[178]1[164]800:[130]
600 [143] vorbereitung
610 [153]"load"
620 cr[178]0:sy[178][194](251):[151]881,3
630 [158]13094
640 [143] countdown
650 [129]a[178]9[164]0[169][171]1
660 [153]"";a
670 [129]b[178]1[164]300:[130]:[130]
680 [153]" "
700 [143] start
710 [158]12800
720 [139][194](881)[178]255[167]1000:[143] im ziel
730 [143] crash
740 cr[178]cr[170]1
750 [153]""[166]15)"*crash*on
760 si=54272
770 pokesi+4,129:pokesi+11,129:pokesi+18,129:rem ton
780 fora=1to10:poke53294,4:b=1^1:poke53294,1:next
800 forb=1to10:printspc(15)"*crash*[145]
810 [129]a[178]1[164]120:[130]
820 [153][166]15)"*crash*on
830 fora=1to120:next:next
840 printspc(15)" [158]"
850 pokesi+4,0:pokesi+11,0:pokesi+18,0
860 ifpeek(197)=46thengoto400
870 :
880 x=peek(870)+5+br*1.5
890 poke53262,x*8and255
900 poke53264,-(x*8>255)*128
910 fora=1to2000:next
920 goto700
930 :
1000 rem spielende
1010 print""," spiel beendet "
1020 fora=1to1500:next
1100 rem auswertung
1110 poke53269,0
1120 print"[147]","[164][164][164][164][164][164][164][164][164][164][164]"
1130 print," resultat: "
1140 ifcrthencl=7:gosub6220
1150 ifcr>15thenprint"[150]";
1200 print" fahrbahnbreite : ";br$
1210 print" geschwindigkeit: ";ge$
1220 print" crashes :";cr
1250 p=int((7-ge)^4*(7-br)^3/2^cr)*100
1260 ifcr>15thenp=0
1270 ifp>5e5thencl=5:gosub6200
1280 print"";p;"punkte."
1310 fora=1to1000:next
1320 ifp=0thenprint" trotzdem";
1330 print" noch einmal ? ";
1340 gosub6000
1350 ifx$="n"thenpoke54296,0:cl=6:gosub6200:print:end
1360 ifx$<>"j"andx$<>"y"then1340
1370 cl=6:gosub6200:goto400
1380 :
5000 rem anleitung
5060 print" versuchen sie ihr fahrzeug
5080 [153]" unfallfrei bis zum ziel zu steuern.
5100 print" mit den beiden crsr[146]-tasten koennen
5120 [153]" sie nach links oder rechts lenken.
5170 print" [150]crashes ergeben minuspunkte ![158]
5180 [142]
6000 [143] get-rD{$7f}ine
6010 [151]53269,0
6020 [161]x$:[161]x$
6030 [129]a[178]1[164]4
6040 [153][202]("(NULL)tan(NULL)peek",a,1);"cmd";
6050 [161]x$
6060 [139]x$[179][177]""[167][153]" cmd";:[142]
6070 b[178]1[174]1[174]1
6080 [130]:[137]6030
6200 [143] farbe setzen
6210 [151]53281,cl
6220 [151]53281,cl
6230 [142]
6400 [143] fahrbahnDakter und -symbol
6410 [153]"load charakter (1-9) ? ";
6420 [141]6000:x[178][197](x$):[139]x[178]0[167]6420
6430 [153]x$:[151]883,(x[171]1)[172]10
6450 [153]" symbol ? ";
6460 [141]6000
6470 [139]x$[178]""[167][153]x$;:[137]6460
6480 [139]x$[178][199](13)[167][153]:[142]
6490 [153]x$:sy[178][194](1274)
6500 [139]sy[178]32[176]sy[178]96[167]6450
6510 [151]251,sy
6520 [129]a[178]1[164]500:[130]:[142]
6530 :
8000 [143] maschinenprogramm
8010 [131]120,169,245,141,24,208,32,119,50,169,21,141,24,208,173,31,208,32,116
8020 [131]50,14,31,208,176,40,32,67,50,14,31,208,176,32,32,243,50,32,67,50,32
8030 [131]230,50,14,31,208,176,18,32,230,50,14,31,208,176,10,206,112,3,208,197
8040 [131]206,113,3,16,192,88,96,162,0,142,0,220,174,14,208,173,1,220
8050 [131]201,127,240,15,201,251,208,23,138,24,105,2,144,14,110,16,208
8060 [131]208,9,138,56,233,2,176,3,14,16,208,141,14,208,162,127,142,0
8070 [131]220,96,0,162,60,44,162,4,134,101,232,232,232,134,98,134,100,160
8080 [131]152,132,97,160,192,132,99,169,32,160,39,145,99,136,16,251,162,24,24
8090 [131]169,32,188,80,3,145,97,200,145,97,165,251,145,99,136,145,99,152,101
8100 [131]252,168,169,32,145,97,200,145,97,165,251,145,99,136,145,99,202,56,165
8110 [131]97,233,40,133,97,176,3,198,98,56,165,99,233,40,133,99,176,199,198
8120 [131]100,165,100,197,101,176,191,201,59,208,11,162,24,189,80,3,157,81
8130 [131]3,202,16,247,96,164,253,162,0,202,208,253,136,208,250,76,67,50,174
8140 [131]80,3,240,21,232,236,114,3,202,176,14,173,115,3,205,4,220,176,6,36
8150 [131]88,48,13,16,5,44,4,220,80,6,232,236,114,3,144,3,202,48,247,138,56
8160 [131]237,80,3,142,80,3,133,88,96,169,0,133,88,234,141,112,3,169,13,162
8170 [131]24,157,80,3,202,16,250,165,252,201,22,144,4,169,20,133,252,169,39
8180 [131]56,229,252,141,114,3,165,252,74,24,105,15,10,10,10,141,14,208,162
8190 [131]0,169,1,157,0,216,157,0,217,157,0,218,157,0,219,169,32,157,0,60,157
8200 [131]0,61,157,0,62,157,0,63,202,208,225,169,216,141,15,208,162,0,142,16
8210 [131]208,142,23,208,142,27,208,142,28,208,142,29,208,142,21,208,160,11
8220 [131]140,255,7,140,255,63,160,1,140,46,208,32,119,50,32,116,50,162,128
8230 [131]142,21,208,162,0,142,31,208,96
8240 :
8400 [143] sprite
8410 [131]0,0,0,0,60,0,0,60,0,0,126,0,6,126,96,6,126,96,7,255,224,6,126,96,6,126
8420 [131]96,0,255,0,0,255,0,0,255,0,1,255,128,1,255,128,29,255,184,29,255,184
8430 [131]31,255,248,29,255,184,29,255,184,0,255,0,0,126,0